package com.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mapper.auto.MendaoStuMapper;
import com.model.auto.MendaoStu;
import com.service.IMendaoStuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author astupidcoder
 * @since 2022-09-14
 */
@Service
public class MendaoStuServiceImpl extends ServiceImpl<MendaoStuMapper, MendaoStu> implements IMendaoStuService {
    @Autowired
    private MendaoStuMapper mendaoStuMapper;

    @Override
    public MendaoStu findOne(Long id) {
        return mendaoStuMapper.findOne(id);
    }

    @Override
    public List<MendaoStu> getList() {
        return mendaoStuMapper.getList();
    }

    @Override
    public void insertDate(MendaoStu mendaoStu) {
        mendaoStuMapper.insert(mendaoStu);
    }

    @Override
    public void updateDate(MendaoStu mendaoStu) {
        mendaoStuMapper.updateDate(mendaoStu);
    }

    @Override
    public List<MendaoStu> selectByStuId(String stuId) {
        return mendaoStuMapper.selectByStuId(stuId);
    }
}
